package com.lj.bruth.config;

import cn.hutool.core.date.DateUtil;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.lj.bruth.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public class TimerConfig {

    private static final Log log = LogFactory.get();

    @Autowired
    private UserService userService;

    public void execute(){
        //log.info("闯哥是傻掉！！！！！"+ DateUtil.formatDateTime(new Date()));
        //List<User> users = userService.queryUser();
        log.info("闯哥是傻掉！！！！！"+ DateUtil.formatDateTime(new Date()));
        //UserServiceImpl userService = new UserServiceImpl();
        //List<User> users = userService.queryUser();
        //log.info("=========闯哥是傻掉！！！！！"+ users);
    }
}
